<?php
function dump($Var, $bEcho=true,$sLabel=null, $bStrict=true){

         $SLabel = ($sLabel===null) ? '' : rtrim($sLabel) . ' ';

         if(!$bStrict) {

              if (ini_get('html_errors')) {

                   $sOutput = print_r($Var, true);
                   $sOutput = "<pre>".$sLabel.(  htmlspecialchars($sOutput,ENT_QUOTES) )."</pre>";
              }

              else{

                   $sOutput = $sLabel . " : " . print_r($Var, true);
              }

          }

		  else {

              ob_start( );
              var_dump($Var);
              $sOutput = ob_get_clean();
              if(!extension_loaded('xdebug')) {

             
					   $sOutput = preg_replace("/\]\=\>\n(\s+)/m", "] => ", $sOutput);
				 

                   $sOutput = '<pre>'. $sLabel. (  htmlspecialchars($sOutput,ENT_QUOTES) ). '</pre>';
              }
          }

          if ($bEcho) {

	
                  echo $sOutput;
	
              return null;
          }

         else{

              return $sOutput;
         }

     }

function showError($sErrorMessage)
{
echo $sErrorMessage;}
?>